﻿$def with (page)
<!doctype html>
<html lang="zh">
<head>
    <meta charset="utf-8">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">

    $if page.has_key('title'):
        <title>$page.title</title>
    $else:
        <title>Wiki</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.2.0/pure-min.css">

</head>
<body>
<div class="pure-g-r content" id="layout">

	<div class="header pure-u-1">
		<div class="pure-menu pure-menu-open pure-menu-fixed pure-menu-horizontal">
			<ul>
				<li><a href="/">首页</a></li>
				<li><a href="/new">新建</a></li>
			</ul>
		</div>
	
	</div>
	<div class="pure-g-r">
		$:page
	</div>
	
	<div class="footer pure-u-1">
		Copyrights
	</div>

</div>
</body>
</html>
